package edu.gdkm.singleton;

import org.junit.Test;

public class SingletonTest {
    @Test
    public void test1() {
        NumberUtils utils = NumberUtils.getInstance();
        System.out.println(utils.getCode());
        System.out.println(utils.getCode());
        System.out.println(utils.getCode());
        NumberUtils utils2 = NumberUtils.getInstance();
        System.out.println(utils2.getCode());
        System.out.println(utils2.getCode());
        System.out.println(utils2.getCode());

        NumberUtils utils3 = NumberUtils.getInstance();
        System.out.println(utils3.getCode());
        System.out.println(utils3.getCode());
        System.out.println(utils3.getCode());
    }
}
